// header file for the Team class
#ifndef __TEAM__
#define __TEAM__

extern RobustIO robio; // declared in 'main.cpp'
extern const int MAXPLAYERS; // declared in 'Consthead.hpp'

class Team { // class holds info on each team
private:
    char* name; // teams name
    char* homeaddress; // home address of team e.g. anfield road something something
    int playercount; // number of players in team
    int playersid[MAXPLAYERS]; // contains all player id's in the team 
// does not point to a player anymore, contains a number instead.
    
    friend void changepl();
    
public:
    Team(); // default constructor // should not be used
    Team(ifstream* in); // constructor reads from file
    void display();
    
    void writeToFile(ofstream* out); // write this team to file-stream
    
////////////////////////////// INLINE FUNCTIONS //////////////////////
///////////////////// SHOULD NOT BE HERE! MOVE WHEN TIME /////////////
//////////////////////////////////////////////////////////////////////
    char* getName() {
	return this->name;
    }
    
};
#endif
